Skip to content

Conversation

@miaobyte
Copy link
Contributor

@miaobyte miaobyte commented Apr 7, 2025

No description provided.

@miaobyte miaobyte requested a review from Copilot April 7, 2025 15:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 18 out of 31 changed files in this pull request and generated 2 comments.

Files not reviewed (13)
  • excuter/cpp-common/src/deepx/shape.cpp: Language not supported
  • excuter/cpp-common/src/deepx/shape_broadcast.hpp: Language not supported
  • excuter/cpp-common/src/deepx/tensorfunc/changeshape.hpp: Language not supported
  • excuter/op-mem-cuda/src/client/tfs.cpp: Language not supported
  • excuter/op-mem-cuda/src/deepx/tensorfunc/broadcast.hpp: Language not supported
  • excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.cu: Language not supported
  • excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.cuh: Language not supported
  • excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.hpp: Language not supported
  • excuter/op-mem-cuda/src/deepx/tf/changeshape.hpp: Language not supported
  • excuter/op-mem-cuda/test/tensorfunc/2_changeshape.cpp: Language not supported
  • excuter/op-mem-ompsimd/src/client/tfs.cpp: Language not supported
  • excuter/op-mem-ompsimd/src/deepx/tensorfunc/changeshape_miaobyte.hpp: Language not supported
  • excuter/op-mem-ompsimd/src/deepx/tf/changeshape.hpp: Language not supported
Comments suppressed due to low confidence (2)

front/py/deepx/tensor/changeshape.py:35

  • Removing the axes parameter in 'transpose_' may not be intentional; if this method is meant to always swap the last two dimensions, please clarify the behavior or adjust the signature accordingly.
def transpose_(self):

front/py/deepx/nn/functional/changeshape.py:187

  • Undefined variable 't' used in BroadcastTo.backward; ensure a proper tensor reference is provided for the backward computation.
return _A_v_elementwiseop_C(out_grad,new_shape,"broadcastTo",t.node.name,author)

Comment on lines 61 to +62
@property
def shape(self):
return self._shape.shape
def shape(self,dim:int=None):
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defining a property with an extra parameter deviates from typical Python property usage. Consider converting 'shape' to a regular method (e.g., 'get_shape') if a parameter is needed.

Copilot uses AI. Check for mistakes.
Comment on lines +127 to +128
return _A_v_elementwiseop_C(out_grad,dim,"concat",t.node.name,author)

Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undefined variable 't' used in Concat.backward; use a valid tensor reference (e.g., from saved context) or correct the identifier.

Suggested change
return _A_v_elementwiseop_C(out_grad,dim,"concat",t.node.name,author)
tensors = ctx.get_data('tensors')
return _A_v_elementwiseop_C(out_grad, dim, "concat", tensors[0].node.name, author)

Copilot uses AI. Check for mistakes.
@miaobyte miaobyte merged commit 0df2022 into array2d:main Apr 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant